<template>
    <div class="cropper-content">
        <video id="player-container-id" width="1000" preload="auto" playsinline webkit-playsinline>
        </video>
        <a-row>

            <a-col :xs="{span: 24}" :md="{span:22, offset: 1}" :lg="{span:20, offset: 2}" class="contain">
<!--                <video id="player-container-id" preload="auto" playsinline webkit-playsinline>-->
<!--                </video>-->
            </a-col>
        </a-row>

    </div>
</template>

<script>
  export default {
    name: "testIndex",
    data() {
      return {

      }
    },
    mounted() {
      this.init ();
    },
    methods: {
      init () {
        var player = TCPlayer('player-container-id', {
          width: 1200,
          height: 600
        }); // player-container-id 为播放器容器 ID，必须与 html 中一致
        var url = 'webrtc://onlive.mingyuefusu.top/live/test';
        player.src(url); // url 播放地址
      }
    }
  }
</script>

<style scoped lang="scss">

</style>

